<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
	$(function() {
		$.ajax({
			url : 'info',
			type : 'post',
			data : {
				secId : '${secId}'
			},
			dataType : 'json',
			success : function(result) {
				console.log(result);
				$.each(result, function(inde, ele) {
					console.log(ele.photo);
					if (1 == 1) {
						$("#data").append(
								"<h3>" + ele.content + "</h3></br>"
										+ "<img src='images/"+ele.photo+"'>"
										+ "<a href='delete?id=" + ele.id
										+ "'>删除</a>" + "<a href='query?id="
										+ ele.id + "'>修改</a>"
										+ "<a href='addHelp.jsp'>新增</a>");

					} else {
						$("#data").append(
								"<h3>" + ele.content + "</h3></br>"
										+ "<img src='images/"+ele.photo+"'>"
										+ "<a href='delete?id=" + ele.id
										+ "'>删除</a>" + "<a href='query?id="
										+ ele.id + "'>修改</a>"
										+ "<a href='addHelp.jsp'>新增</a>");
					}
				})
			}
		})
	})
</script>
<body>
	<div id="data"></div>
</body>
</html>